package net.timeslicer.jabber;

import java.util.HashMap;
import java.util.Map;

import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.packet.Packet;

public class SpamMessageListener implements PacketListener {
	static int count = 0;
	static String previousSender = "";
	static long previousTimestamp = System.currentTimeMillis();
	static long totalTimestamps = 0;
	static Map userMessageMap = new HashMap(); // use this later for tracking bad message patterns
	
	@Override
	public void processPacket(Packet packet) {
		new Thread(new JabberMessageThread(packet)).start();
	}
}
